package com.fingard.dsp.bank.reqrespobj.elecbilltrans.detail;

import com.fingard.xml.XElement;

public class ReqB106BillDiscSubmitDetail {
    //    支付请求码
    public String reqSeqID;
    //    银行账号
    public String actNum;
    //    票据币种
    public String billCur;
    //    电子票据序列号
    public String billNo;
    //贴现种类 1-买断式 2-回购式
    public String discType;
    //    清算标记 1-线上清算 2-线下清算
    public String payType;

    //    转让标记 1-可再转让 2-不得转让
    public String transFlag;
    //    回购开放日 YYYY-MM-DD
    public String repOpenDate;
    //    回购截止日 YYYY-MM-DD
    public String repDueDate;
    //  票据到期日 2018-10-29 00:00:00.0
    public String dueDate;
    //    贴现利率
    public String discRate;
    // 协商加天数，用于调整计息天数
    public String adjustDiscDay;

    //    贴现实付金额
    public String discAmt;

    //    回购利率
    public String repRate;
    //    回购实付金额
    public String repAmt;
    //    合同号
    public String contractNo;
    //    发票编号
    public String invoiceNo;
    //    接收人名称
    public String receName;

    //    接收人账号
    public String receAct;
    //    接收人开户行行名
    public String receBnkName;
    //    接收人开户行行号
    public String receBnkCode;

    //    接收人直联行号
    public String dircReceBnkCode;
    //    接收人和原账号是否同行 1-同行 2-不同行
    public String receSameBnk;
    //    入账账号
    public String actedAct;

    //    入账行号
    public String actedBnkCode;

    //    入账行名
    public String actedBnkName;

    //    入账行是省市
    public String actedBnkArea;
    //    备注
    public String memo;
    //    票据金额
    public String billAmt;
    //    票据类型
    public String billType;
    //     付息方式:1：卖方付息;2：买方付息;3：协议付息
    public String payInterestType;
    //    付息账号
    public String payInterestAct;
    //    付息名称
    public String payInterestName;
    //    付息比例（%）
    public String payInterestRate;

    //    贴现申请人名称
    public String discName;
    //    贴现申请人开户行行号
    public String discBnkCode;

    public String discBnkArea;

    //    代理结构类型
    public String agentType;
    //    折扣类型
    public String discountType;


    //出票人名称
    public String billOpenName;
    //出票人账号
    public String billOpenAcc;
    //对手开户行城市
    public String recCityName;
    //    业务流水号
    public String busiNo;
    //    贴现日期 yyyy-MM-dd
    public String discDate;

    public XElement srcElement;

    public ReqB106BillDiscSubmitDetail(XElement p_element) throws Exception {
        srcElement = p_element;
        reqSeqID = srcElement.getSingleText("ReqSeqID");
        actNum = srcElement.getSingleText("ActNum");
        billNo = srcElement.getSingleText("BillNo");
        billCur = srcElement.getSingleText("BillCur");
        discType = srcElement.getSingleText("DiscType");
        discBnkArea = srcElement.getSingleText("DiscBnkArea");
        payType = srcElement.getSingleText("PayType");
        adjustDiscDay = srcElement.getSingleText("AdjustDiscDay");

        transFlag = srcElement.getSingleText("TransFlag");
        repOpenDate = srcElement.getSingleText("RepOpenDate");
        repDueDate = srcElement.getSingleText("RepDueDate");
        dueDate = srcElement.getSingleText("DueDate");
        discRate = srcElement.getSingleText("DiscRate");
        discAmt = srcElement.getSingleText("DiscAmt");

        repRate = srcElement.getSingleText("RepRate");
        repAmt = srcElement.getSingleText("RepAmt");
        contractNo = srcElement.getSingleText("ContractNo");
        invoiceNo = srcElement.getSingleText("InvoiceNo");
        receName = srcElement.getSingleText("ReceName");

        receAct = srcElement.getSingleText("ReceAct");
        receBnkName = srcElement.getSingleText("ReceBnkName");
        receBnkCode = srcElement.getSingleText("ReceBnkCode");
        dircReceBnkCode =srcElement.getSingleText("DircReceBnkCode");
        receSameBnk = srcElement.getSingleText("ReceSameBnk");
        actedAct = srcElement.getSingleText("ActedAct");
        actedBnkName = srcElement.getSingleText("ActedBnkName");
        actedBnkCode = srcElement.getSingleText("ActedBnkCode");
        actedBnkArea =srcElement.getSingleText("ActedBnkArea");
        memo = srcElement.getSingleText("Memo");
        billAmt = srcElement.getSingleText("BillAmt");
        billType = srcElement.getSingleText("BillType");
        payInterestType = srcElement.getSingleText("PayInterestWay");

        payInterestAct = srcElement.getSingleText("PayInterestAct");
        payInterestName = srcElement.getSingleText("PayInterestName");
        payInterestRate = srcElement.getSingleText("PayInterestRate");


        discName = srcElement.getSingleText("DiscName");
        discBnkCode = srcElement.getSingleText("DiscBnkCode");
        agentType = srcElement.getSingleText("AgentType");
        discountType = srcElement.getSingleText("DiscountType");

        billOpenName = srcElement.getSingleText("BillOpenName");
        billOpenAcc = srcElement.getSingleText("BillOpenAcc");
        recCityName = srcElement.getSingleText("RecCityName");
        busiNo = srcElement.getSingleText("BusiNo");
        discDate = srcElement.getSingleText("DiscDate");
    }
}
